home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / doc / redland-utils / RELEASE.html < prev    next >
Encoding:
Extensible Markup Language  |  2007-12-24  |  78.7 KB  |  2,436 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  4. <head>
  5.   <title>Redland RDF Application Framework - Release Notes</title>
  6.   <style type="text/css">
  7. <!--
  8. pre
  9. {
  10.     margin: 1em 4em 1em 4em;
  11.     background-color: #eee;
  12.     padding: 0.5em;
  13.     border-color: #006;
  14.     border-width: 1px;
  15.     border-style: dotted;
  16. }
  17. -->
  18.   </style>
  19. </head>
  20. <body>
  21.  
  22.   <h1>Redland RDF Application Framework - Release Notes</h1>
  23.  
  24. <h2 id="rel1_0_7"><a name="rel1_0_7">Redland 1.0.7 Changes</a></h2>
  25.  
  26. <p>The main changes in this release are:</p>
  27.  
  28. <p>Updated to use 
  29. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.15
  30. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_15">Rasqal 0.9.15 release notes</a>)
  31. from 0.9.14.  NOTE: Rasqal's API will change in 0.9.16 so Redland 1.0.7
  32. requires 0.9.15 exactly - no newer, no older.
  33. </p>
  34.  
  35. <p>Updated to use
  36. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.16
  37. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_16">Raptor 1.4.16 release notes</a>)
  38. from 1.4.15.
  39. </p>
  40.  
  41.  
  42. <p>Added modular storage backends.  When
  43. <code>--enable-modular</code> is given to configure, all the storage
  44. major backends are compiled as dynamically loadable modules.  The
  45. memory, file and uri storages are always available.  This is not
  46. enabled by default as it is a new feature.
  47. </p>
  48.  
  49.  
  50. <p>Issues Fixed:</p>
  51. <ul>
  52.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000187">0000187</a>: "rdf_query_results.c", line 630: void function cannot return value</li>
  53.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000189">0000189</a>: librdf_uri_is_file_uri: wrong return value</li>
  54.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000203">0000203</a>: API declarations for Symbian portability</li>
  55.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000205">0000205</a>: Memory leak in rdf_query_rasqal.c</li>
  56.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000209">0000209</a>: Null dereference + assertion failures in minimal librdf setup-cleanup</li>
  57.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000213">0000213</a>: Multiple instances of world object make trouble</li>
  58.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000215">0000215</a>: librdf_new_node_from_typed_counted_literal() does not respect parameter lengths</li>
  59.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000218">0000218</a>: librdf_query_execute does not assert model parameter</li>
  60.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000229">0000229</a>: Segmentation fault when invoking librdf_new_model_from_model()</li>
  61.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000230">0000230</a>: on Gentoo/FreeBSD redland fails compilation due to a missing #define pthread.h</li>
  62.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000234">0000234</a>: autogen.sh $dir quoting</li>
  63.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000235">0000235</a>: $(EXEEXT) in tests</li>
  64.   <li><a href="http://bugs.librdf.org/mantis/view.php?id=0000236">0000236</a>: EOL issues when building svn version on cygwin</li>
  65. </ul>
  66.  
  67.  
  68. <h3>General Changes</h3>
  69.  
  70. <p><code>configure</code> was updated to ensure that redland 1.0.7
  71. will work with rasqal 0.9.15 only due to the future API change coming
  72. in the next rasqal version.
  73. </p>
  74.  
  75. <p>Make lots of writable static data truly constant especially from
  76. writable static data from rdf_concepts.  This causes a
  77. <strong>SOURCE COMPATIBILITY BREAK</strong>: the
  78. <code>rdf_concepts.h</code> public API node and uri
  79. macros now require a <code>librdf_world*</code> parameter.
  80. </p>
  81.  
  82.  
  83. <h3>Parser Class Changes</h3>
  84.  
  85. <p>Added <code>librdf_parser_set_uri_filter()</code> and
  86. <code>librdf_parser_get_uri_filter()</code> to set and get parser
  87. URI filters, passed on into raptor.
  88. </p>
  89.  
  90. <h3>Storage Class Changes</h3>
  91.  
  92. <p>Several SQLite storage improvements and fixes were made:</p>
  93. <ul>
  94. <li>Added transaction support</li>
  95. <li>Handle SQL errors more gracefully</li>
  96. <li>the contains_statement method now works with a blank subject node.</li>
  97. <li>Resource allocation and low mwmory fixes</li>
  98. </ul>
  99.  
  100. <h3>URI Class Changes</h3>
  101.  
  102. <p>Added <code>librdf_uri_compare()</code> to compare uri objects
  103. rather than rely on stringifying them and comparing the strings.
  104. </p>
  105.  
  106.  
  107. <h3>Internal and Other Changes</h3>
  108.  
  109. <p>Many low memory and error path, resource leak fixes for parsers,
  110. streams, module factory construction and module initialising.
  111. </p>
  112.  
  113. <p><code>librdf_serializer_set_namespace()</code> now allows NULL uri
  114. and prefix to be given.
  115. </p>
  116.  
  117. <p><code>librdf_storage_mysql_transaction_commit()</code> now
  118. terminates if there is no work to commit.
  119. </p>
  120.  
  121. <p>autogen.sh version comparsion was fixed so that 1.10 is seen as
  122. newer than 1.9.
  123. </p>
  124.  
  125.  
  126.  
  127. <h2 id="rel1_0_6"><a name="rel1_0_6">Redland 1.0.6 Changes</a></h2>
  128.  
  129. <p>The main changes in this release are:</p>
  130.  
  131. <p>Updated to use 
  132. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.14
  133. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_14">Rasqal 0.9.14 release notes</a>)
  134. from 0.9.13.
  135. </p>
  136.  
  137. <p>Updated to use
  138. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.15
  139. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_15">Raptor 1.4.15 release notes</a>)
  140. from 1.4.13.
  141. </p>
  142.  
  143. <p>Plus a new transactions API for changes to the graph, implemented
  144. and tested for MySQL.</p>
  145.  
  146. <p>Added a new query results formatter class to turn a query results
  147. object into a syntax.</p>
  148.  
  149.  
  150. <h3>Model Class Changes</h3>
  151.  
  152. <p>Added a model transaction API:</p>
  153. <ul>
  154. <li><code>librdf_model_transaction_start()</code> to begin the transaction</li>
  155. <li><code>librdf_model_transaction_start_with_handle()</code> to begin it
  156. using an existing connection pointer (such as a MySQL connection)</li>
  157. <li><code>librdf_model_transaction_commit()</code> to commit the changes</li>
  158. <li><code>librdf_model_transaction_rollback()</code> to abort them (automatic
  159. if not  commited before a close)</li>
  160. <li><code>librdf_model_transaction_get_handle()</code> to
  161. get a handle associated with a connection.</li>
  162. </ul>
  163. <p>Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=38">Issue #0000038</a>
  164. </p>
  165.  
  166. <p>Implemented the Transaction API for MySQL (tested) and PostgreSQL
  167. (not tested).
  168. </p>
  169.  
  170. <p>Invert test in <code>librdf_model_add_submodel()</code>.
  171. Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=175">Issue#0000175</a>
  172. </p>
  173.  
  174.  
  175. <h3>Parser Class Changes</h3>
  176.  
  177. <p>Added <code>librdf_parser_guess_name()</code> to guess a parser
  178. name from content, similar to how a parser is constructed from
  179. content.
  180. </p>
  181.  
  182. <p>Added functions to return the namespaces declared during a parse:
  183. <code>librdf_parser_get_namespaces_seen_count()</code> to return the
  184. number seen, <code>librdf_parser_get_namespaces_seen_prefix()</code> to
  185. get the prefix string and
  186. <code>librdf_parser_get_namespaces_seen_uri()</code> to get the
  187. <code>librdf_uri*</code>.
  188. </p>
  189.  
  190.  
  191. <h3>Query and Query Results Class Changes</h3>
  192.  
  193. <p>Added a new <em>Query Results Formatter</em> class building
  194. <code>librdf_query_results_formatter*</code> objects
  195. to turn a query results into a syntax such as SPARQL query results
  196. formats, JSON.  New functions:</p>
  197. <ul>
  198. <li>Constructors: <code>librdf_new_query_results_formatter()</code> and
  199. <code>librdf_new_query_results_formatter_by_mime_type()</code>.
  200. </li>
  201. <li>Destructor: <code>librdf_free_query_results_formatter()</code></li>
  202. <li>Method: <code>librdf_query_results_formatter_write()</code>
  203. to write the query results to an iostream.</li>
  204. <li>Helper functions: <code>librdf_query_results_formats_check()</code>
  205. and <code>librdf_query_results_formats_enumerate()</code></li>
  206. </ul>
  207.  
  208. <p>Added <code>librdf_query_results_is_syntax()</code> to
  209. check if a query result is a syntax, and not any of the other
  210. possibilities - bindings, boolean or graph.
  211. </p>
  212.  
  213.  
  214. <h3>Serializer Class Changes</h3>
  215.  
  216. <p>Default to serializer named "rdfxml" if no name is given to ensure
  217. another rdfxml serializer such as XMP is not returned.
  218. </p>
  219.  
  220.  
  221. <h3>Storage Class Changes</h3>
  222.  
  223. <p>The MySQL storage implements the transaction API.  It batches up
  224. all the pending insertions and aggregates them so that any set of
  225. triple writes during the transaction sequence are all done at one
  226. point, with 4 INSERTs only.
  227. </p>
  228.  
  229. <p>Added a supporting
  230. functions <code>librdf_hash_interpret_template()</code> to
  231. interpolate variables into strings using a librdf_hash of
  232. key/values.</p>
  233.  
  234. <p>The MySQL storage now takes an optional storage option 'layout'
  235. that can choose between the v1 and v2 SQL schemas (only the table
  236. type has changed).  The SQL fragments are described in Turtle files
  237. that are installed and read on startup.
  238. </p>
  239.  
  240.  
  241. <h3>Configuration and Build Changes</h3>
  242.  
  243. <p><strong>Packagers note</strong>: two new files are installed into
  244. PREFIX/share/redland for the MySQL schemas.  Without them installed,
  245. the MySQL storage will not work.
  246. </p>
  247.  
  248. <p>Removed the <code>configure</code> script option
  249. <code>--enable-parsers</code> since Raptor is always required and
  250. always used inside Redland whether or not any parsers were configured.
  251. </p>
  252.  
  253. <p>Use <code>pkg-config</code> Libs.private in
  254. <code>redland.pc</code> for internal dynamically linked libraries.
  255. </p>
  256.  
  257. <p><code>redland-config</code> gains an --private-libs option to hold
  258. private libraries moved from --libs which now only contains -L and a
  259. -lrdf.
  260. </p>
  261.  
  262. <p>Added a building utility <code>touch-mtime.pl</code>
  263. to handle <code>touch -r</code> which does not work on SunOS.
  264. Fixes 
  265. <a href="http://bugs.librdf.org/mantis/view.php?id=159">Issue #0000159</a>
  266. </p>
  267.  
  268.  
  269. <h3>Other Changes</h3>
  270.  
  271. <p>Added <code>librdf_world_open()</code> for every public API
  272. constructor or function that mentions librdf_world* and could have
  273. failed to run <code>librdf_world_open()</code> after
  274. <code>librdf_new_world()</code>.  This makes
  275. <code>librdf_world_open()</code> entirely optional.
  276. Fixes
  277. <a href="http://bugs.librdf.org/mantis/view.php?id=173">Issue #0000173</a>
  278. </p>
  279.  
  280. <p><code>rdfproc</code> gains an --transactions / -T option for
  281. enabling transactions on the command line and an --results / -r
  282. option to set the query results formatter name.
  283. </p>
  284.  
  285. <p>Do not throw away the rasqal node type information now, it is needed
  286. later on in <code>FILTER</code> comparisons.
  287. Fixes
  288. <a href="http://bugs.librdf.org/mantis/view.php?id=153">Issue #0000153</a>
  289. </p>
  290.  
  291. <p>Fix reference count problem in storages that caused connections
  292. to fail to free in MySQL.
  293. Fixes
  294. <a href="http://bugs.librdf.org/mantis/view.php?id=150">#0000150</a>
  295. </p>
  296.  
  297. <p>Fix reference count / memory leak in file storage.
  298. </p>
  299.  
  300.  
  301.  
  302.  
  303. <h2 id="rel1_0_5"><a name="rel1_0_5">Redland 1.0.5 Changes</a></h2>
  304.  
  305. <p>The main changes in this release are:</p>
  306.  
  307. <p>Updated to use 
  308. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.13
  309. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_13">Rasqal 0.9.13 release notes</a>)
  310. from 0.9.12.
  311. </p>
  312.  
  313. <p>Updated to use
  314. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.13
  315. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_13">Raptor 1.4.13 release notes</a>)
  316. from 1.4.9.
  317. </p>
  318.  
  319. <p>Plus several API additions and many bug fixes.</p>
  320.  
  321.  
  322. <h3>Configuration and Build Changes</h3>
  323.  
  324. <p><code>configure</code> now removes un-necessary tests for C++ or
  325. F77++ compilers that libtool stupidly insists on.  Add lots of
  326. gcc <code>-W</code> flags when they are supported and in maintainer
  327. mode.
  328. </p>
  329.  
  330. <p>Made <code>configure --with-threads</code> work.
  331. Fixes
  332. <a href="http://bugs.librdf.org/mantis/view.php?id=125">Issue #0000125</a>
  333. </p>
  334.  
  335.  
  336. <h3>Model Class Changes</h3>
  337.  
  338. <p>Methods
  339. <code>librdf_model_add</code>,
  340. <code>librdf_model_add_statement</code>,
  341. <code>librdf_model_add_typed_literal_statement</code>,
  342. <code>librdf_model_add_string_literal_statement</code> and
  343. <code>librdf_model_contains_statement</code>
  344. now enforce only allowing legal RDF triples.
  345. </p>
  346.  
  347. <p>Added <code>librdf_model_enumerate</code> to list all the
  348. model implementations - currently just one, a model over
  349. a storage.
  350. </p>
  351.  
  352.  
  353. <h3>Node Class Changes</h3>
  354.  
  355. <p>The node class can now encode and decode long literals with length
  356. >65535 using new encoding type 'N'.
  357. </p>
  358.  
  359. <p>Added new constructor
  360. <code>librdf_new_node_from_typed_counted_literal</code>
  361. to build a typed node with a counted literal string.
  362. </p>
  363.  
  364.  
  365. <h3>Parser Class Changes</h3>
  366.  
  367. <p>Changes to allow NULL base uris in parsing methods, but to fail if
  368. it is omitted but required.  Applies to
  369. <code>librdf_parser_parse_as_stream</code>,
  370. <code>librdf_parser_parse_into_model</code>,
  371. <code>librdf_parser_parse_string_as_stream</code>,
  372. <code>librdf_parser_parse_string_into_model</code>,
  373. <code>librdf_parser_parse_counted_string_as_stream</code>
  374. and
  375. <code>librdf_parser_parse_counted_string_into_model</code>
  376. </p>
  377.  
  378. <p>Added <code>librdf_parser_get_accept_header</code> to get
  379. the <code>Accept</code> header that would be sent with a parser
  380. HTTP fetch of content.
  381. </p>
  382.  
  383.  
  384. <h3>Query Class Changes</h3>
  385.  
  386. <p>Graph names in SPARQL now connect up to redland context nodes
  387. to allow SPARQL <code>GRAPH</code> to work.
  388. </p>
  389.  
  390.  
  391. <h3>Serializer Class Changes</h3>
  392.  
  393. <p>Added new methods to serialize <code>librdf_stream</code>s of triples rather
  394. than just <code>librdf_model</code>:
  395. <code>librdf_serializer_serialize_stream_to_file_handle</code>,
  396. <code>librdf_serializer_serialize_stream_to_file</code>,
  397. <code>librdf_serializer_serialize_stream_to_string</code>,
  398. <code>librdf_serializer_serialize_stream_to_counted_string</code> and
  399. <code>librdf_serializer_serialize_stream_to_iostream</code>.
  400. Fixes
  401. <a href="http://bugs.librdf.org/mantis/view.php?id=92">Issue #0000092</a>
  402. </p>
  403.  
  404.  
  405. <h3>Storage Class Changes</h3>
  406.  
  407. <p>Methods <code>librdf_storage_add_statement</code>,
  408. <code>librdf_storage_add_statements</code> and
  409. <code>librdf_storage_contains_statement</code>
  410. now enforce only allowing legal RDF triples.
  411. </p>
  412.  
  413. <p>The <em>Memory</em> storage now supports deleting while iterating or
  414. streaming the storage.
  415. </p>
  416.  
  417. <p>The <em>PostgreSQL</em> storage now accepts option 'database' like
  418. MySQL and other Redland relational databases in addition to the
  419. existing option it accepted, 'dbname'.
  420. </p>
  421.  
  422. <p><em>SQLite</em> storage fixes:<br />
  423. </p>
  424. <p>
  425. Fix crash in <code>librdf_model_context_remove_statements</code>
  426. Fixes
  427. <a href="http://bugs.librdf.org/mantis/view.php?id=103">Issue #0000103</a>
  428. </p>
  429.  
  430. <p>Wrap all <code>sqlite_FREE</code> calls on error messages so that
  431. they are only called with SQLITE API v2.
  432. Fixes
  433. <a href="http://bugs.librdf.org/mantis/view.php?id=105">Issue #0000105</a>
  434. </p>
  435.  
  436. <p>Check for no language or no datatype when they are NULL
  437. in <code>librdf_storage_sqlite_literal_helper</code>.
  438. Fixes
  439. <a href="http://bugs.librdf.org/mantis/view.php?id=136">Issue #0000136</a>
  440. </p>
  441.  
  442. <p>Store pending queries while the database is locked doing
  443. a <code>SELECT</code> and do them once the select is done.  Such as
  444. deleting triples during a find or serialise.
  445. Fixes
  446. <a href="http://bugs.librdf.org/mantis/view.php?id=139">Issue #0000139</a>
  447. </p>
  448.  
  449.  
  450. <p>SQLite storage now has a 'synchronous' storage option which takes
  451. values 'off', 'normal' or 'full' allowing access to the sqlite pragma
  452. to control when commits are synchronised to file.
  453. </p>
  454.  
  455.  
  456. <h3>Other changes</h3>
  457.  
  458. <p><code>rdfproc</code> now allows the base URI for parsing to be set
  459. to null with <code>-</code> and adjust messages to handle this.
  460. </p>
  461.  
  462. <p>Added some more const fixes to heuristics.
  463. Fixes
  464. <a href="http://bugs.librdf.org/mantis/view.php?id=107">Issue #0000107</a>
  465. </p>
  466.  
  467. <p>Autodocs for <code>librdf_new_node_from_blank_identifier</code>.
  468. Fixes
  469. <a href="http://bugs.librdf.org/mantis/view.php?id=114">Issue #0000114</a>
  470. </p>
  471.  
  472. <p>If <code>librdf_storage_sqlite_statement_operator_helper</code> fails,
  473. free the stringbuffer.
  474. Fixes
  475. <a href="http://bugs.librdf.org/mantis/view.php?id=116">Issue #0000116</a>
  476. </p>
  477.  
  478. <p>Do not read from stream when parsing returns a NULL pointer.
  479. Fixes
  480. <a href="http://bugs.librdf.org/mantis/view.php?id=130">Issue #0000130</a>
  481. </p>
  482.  
  483. <p>Fix debug call in <code>librdf_query_register_factory</code>,
  484. <code>librdf_storage_hashes_add_remove_statement</code> and
  485. <code>librdf_storage_hashes_contains_statement</code>
  486. Fixes
  487. <a href="http://bugs.librdf.org/mantis/view.php?id=132">Issue #0000132</a>
  488. </p>
  489.  
  490. <p>Added rss2ical.c example to turn RSS/Atom 1.0 feeds into
  491. iCalendar using raptor, redland and SPARQL.
  492. </p>
  493.  
  494. <p>Many minor fixes and changes due to adding lots of -W flags
  495. and using gcc4.
  496. </p>
  497.  
  498.  
  499. <h3>SWIG Bindings Interface</h3>
  500.  
  501. <p>Fixed typo to declare <code>librdf_query_results_get_binding_value</code>
  502. to return a new object.
  503. </p>
  504.  
  505. <p>Export new function <code>librdf_parser_get_accept_header</code>
  506. </p>
  507.  
  508. <p>Export version strings and integer constants for raptor:
  509. (<code>raptor_version_string</code>,
  510. <code>raptor_version_major</code>,
  511. <code>raptor_version_minor</code>,
  512. <code>raptor_version_release</code>,
  513. <code>raptor_version_decimal</code>)
  514. and rasqal
  515. (<code>rasqal_version_string</code>,
  516. <code>rasqal_version_major</code>,
  517. <code>rasqal_version_minor</code>,
  518. <code>rasqal_version_release</code>,
  519. <code>rasqal_version_decimal</code>)
  520. </p>
  521.  
  522.  
  523. <h2 id="rel1_0_4"><a name="rel1_0_4">Redland 1.0.4 Changes</a></h2>
  524.  
  525. <p>The main changes in this release are:</p>
  526.  
  527. <p>Updated to use 
  528. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.12
  529. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_12">Rasqal 0.9.12 release notes</a>)
  530. to update to SPARQL 2006-04-06 for JSON results
  531. </p>
  532.  
  533. <p>Updated to use
  534. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.9
  535. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_9">Raptor 1.4.9 release notes</a>)
  536. </p>
  537.  
  538. <p>Plus fixing some crash bugs in parsing and serializing.</p>
  539.  
  540.  
  541. <h3>Configuration and Build Changes</h3>
  542.  
  543. <p>Now using <a href="http://subversion.tigris.org/">Subversion</a>
  544. for version control and the <a href="INSTALL.html">Redland installation instructions</a> explain how to get Redland from Subversion.</p>
  545.  
  546. <p>Win32 fixes and VC build files updates from John Barstow.
  547. </p>
  548.  
  549. <p>Let configure find BDB 4.4</p>
  550.  
  551.  
  552. <h3>Node Class Changes</h3>
  553.  
  554. <p><code>librdf_new_node_from_literal</code>
  555. and <code>librdf_new_node_from_typed_literal</code> now accept empty
  556. strings as an alternative to a NULL language pointer.
  557. </p>
  558.  
  559.  
  560. <h3>Parser Class Changes</h3>
  561.  
  562. <p>Add one more place where it needed handling old and new raptor
  563. statement predicate values
  564. <code>RAPTOR_IDENTIFIER_TYPE_RESOURCE</code> and
  565. <code>RAPTOR_IDENTIFIER_TYPE_PREDICATE</code>.
  566. </p>
  567.  
  568. <p>Fixed a bad uses of flose() causing a crash in parsing a file or
  569. from a <code>FILE*</code> file handle when run under
  570. newer <code>glibc</code>s.
  571. </p>
  572.  
  573.  
  574. <h3>Serializer Class Changes</h3>
  575.  
  576. <p>Fixed a bad uses of flose() causing a crash in serializing to a
  577. file when run under newer <code>glibc</code>s.
  578. </p>
  579.  
  580.  
  581. <h3>Storage Class Changes</h3>
  582.  
  583. <p>Introduced a <code>UINT64_T_FMT</code> to handle formatting a 64-bit
  584. <code>unsigned</code> <code>int</code> in storages
  585. as <code>%llu</code> is not portable.
  586. </p>
  587.  
  588.  
  589. <h2 id="rel1_0_3"><a name="rel1_0_3">Redland 1.0.3 Changes</a></h2>
  590.  
  591. <p>The main changes in this release are:</p>
  592.  
  593. <p>Updated to use 
  594. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.11
  595. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_11">Rasqal 0.9.11 release notes</a>)
  596. to update to SPARQL 2005-11-23
  597. </p>
  598.  
  599. <p>Updated to use
  600. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.8
  601. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_8">Raptor 1.4.8 release notes</a>)
  602. </p>
  603.  
  604. <p>A large source re-arrangement was performed for raptor and rasqal
  605. inside redland.  All C sources and headers that build the libraries
  606. were moved to the src dir, general documentation in the doc dir and
  607. utilities in the utils dir for each sub-library.
  608. </p>
  609.  
  610. <p>Version Control change: Redland will be switching to use
  611. <a href="http://subversion.tigris.org/">Subversion</a>
  612. for version control after the 1.0.3 release.  Please check the
  613. <a href="http://svn.librdf.org/">Redland Subversion site</a>
  614. for the latest status or the online
  615. <a href="http://librdf.org/INSTALL.html">Redland installation notes</a>
  616. for the redland specific subversion installation information.
  617. </p>
  618.  
  619. <p>A new PostgreSQL storage backend was added
  620. contributed by Shi Wenzhong based on the MySQL storage backend.
  621. Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=46">issue #0000046</a>
  622. </p>
  623.  
  624.  
  625. <h3>Configuration Changes</h3>
  626.  
  627. <p>The autogen.sh script for building from CVS was revamped to be
  628. more modular.</p>
  629.  
  630. <p><code>configure</code> now takes an <code>--enable-gtk-doc</code>
  631. option to enable building of the documentation using the
  632. <code>gtk-doc</code> utility.  It is by default enabled only if the
  633. utility is available.
  634. </p>
  635.  
  636.  
  637. <h3>Documentation Changes</h3>
  638.  
  639. <p>The GNOME <code>gtk-doc</code> program is now used to
  640. automatically extract documentation from source comments into
  641. reference documentation.  This is then merged with templates and
  642. additional documentation to provide a reference manual for redland
  643. as XML document which is turned into HTML along with GNOME devhelp
  644. support.</p>
  645.  
  646. <h3>Portability Changes</h3>
  647.  
  648. <p>Some win32 build fixes were made.</p>
  649.  
  650. <h3>World Class Changes</h3>
  651.  
  652. <p><code>librdf_world_get_genid()</code> was changed to include the
  653. process ID in the generated blank ID.
  654. Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=37">Issue #0000037</a>
  655. (patch from Marc Powell).
  656. </p>
  657.  
  658. <h3>Node Class changes</h3>
  659.  
  660. <p><code>librdf_node_encode()</code>: Give an error when a node cannot
  661. be encoded due to string data being too long.
  662. </p>
  663.  
  664.  
  665. <h3>Serializer Class changes</h3>
  666.  
  667. <p>Added <code>librdf_serializer_serialize_model_to_iostream()</code>, not
  668. exposed in the SWIG bindings.
  669. </p>
  670.  
  671.  
  672. <h3>Storage Class Changes</h3>
  673.  
  674. <p>Added a PostgreSQL storage backend contributed by Shi Wenzhong
  675. based on the MySQL storage backend.
  676. Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=46">Issue #0000046</a>
  677. </p>
  678.  
  679.  
  680. <h3>Other Changes</h3>
  681.  
  682. <p>Deprecated <code>librdf_files_temporary_file_name()</code>.</p>
  683.  
  684. <p>Deleted some function prototypes defined in headers but never had
  685. code: 
  686. <code>librdf_node_init()</code>,
  687. <code>librdf_iterator_finished()</code>,
  688. <code>librdf_storage_get()</code> and
  689. <code>librdf_world_set_uris_hash()</code>
  690. </p>
  691.  
  692. <p>Added examples/example7.c to read from an RDF/XML file, add a
  693. triple and write it back.</p>
  694.  
  695.  
  696.  
  697. <h2 id="rel1_0_2"><a name="rel1_0_2">Redland 1.0.2 Changes</a></h2>
  698.  
  699. <p>The changes in this release are:</p>
  700.  
  701. <ul>
  702. <li>Fix a crash when querying or searching with the model
  703. find_statements method and getting no results</li>
  704.  
  705. <li>Update to use 
  706. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.10
  707. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_10">Rasqal 0.9.10 release notes</a>)
  708. to provide query results sorting such as SPARQL <code>ORDER BY</code>
  709. and some SPARQL syntax updates.
  710. </li>
  711.  
  712. <li>Update to use
  713. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.7
  714. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_7">Raptor 1.4.7 release notes</a>)
  715. to fix some crashes in the RSS tag soup parser and serializer.
  716. </li>
  717. </ul>
  718.  
  719.  
  720. <h2 id="rel1_0_1"><a name="rel1_0_1">Redland 1.0.1 Changes</a></h2>
  721.  
  722. <p>The main changes in this release are to update to use 
  723. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.9
  724. (<a href="http://librdf.org/rasqal/RELEASE.html#rel0_9_9">Rasqal 0.9.9 release notes</a>)
  725. to provide improved SPARQL query support for the revised syntax
  726. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.6 
  727. (<a href="http://librdf.org/raptor/RELEASE.html#rel1_4_6">Raptor 1.4.6 release notes</a>)
  728. to
  729. provide a new GRDDL parser as well as updated RSS enclosures support
  730. with the RSS tag soup parser and RSS 1.0 serializer.
  731. </p>
  732.  
  733. <p>The digest and hash classes now expose public API constructors,
  734. destructors and methods via their header files.</p>
  735.  
  736.  
  737. <h3>Configuration changes</h3>
  738.  
  739. <p>Added <code>--with-memory-signing</code> to check when memory is
  740. allocated / freed across Redland libraries.
  741. </p>
  742.  
  743.  
  744. <h3>Portability Fixes</h3>
  745.  
  746. <p>Added Win32 portability fixes and build configuration (John Barstow)</p>
  747.  
  748.  
  749. <h3>Binding API changes</h3>
  750.  
  751. <p>The following changes were made to the bindings API as
  752. exported by the SWIG interface file <code>Redland.i</code>:</p>
  753.  
  754. <p>The digest class was added:
  755. constructor <code>librdf_new_digest</code>, 
  756. destructor <code>librdf_free_digest</code>
  757. and methods <code>librdf_digest_init</code>, 
  758. <code>librdf_digest_update</code>, 
  759. <code>librdf_digest_update_string</code>, 
  760. <code>librdf_digest_final</code> and
  761. <code>librdf_digest_to_string</code>,.
  762. </p>
  763.  
  764. <p>The hash class was added as selected functions:
  765. constructors <code>librdf_new_hash_from_string</code> and
  766. <code>librdf_new_hash_from_array_of_strings</code> and destructor
  767. <code>librdf_free_hash</code>.
  768. </p>
  769.  
  770. <p>The query class methods
  771. <code>librdf_query_get_limit</code>,
  772. <code>librdf_query_set_limit</code>,
  773. <code>librdf_query_get_offset</code> and
  774. <code>librdf_query_set_offset</code> were added.
  775. </p>
  776.  
  777. <p>Functions were added for accessing parts of structured log messages
  778. as <code>librdf_log_message</code> objects:
  779. <code>librdf_log_message_code</code>, 
  780. <code>librdf_log_message_level</code>, 
  781. <code>librdf_log_message_facility</code>, 
  782. <code>librdf_log_message_message</code>, 
  783. <code>librdf_log_message_locator</code>
  784. and <a href="http://librdf.org/raptor/">Raptor</a> <code>raptor_locator</code>
  785. objects:
  786. <code>raptor_locator_line</code>, 
  787. <code>raptor_locator_column</code>, 
  788. <code>raptor_locator_byte</code>, 
  789. <code>raptor_locator_file</code> and
  790. <code>raptor_locator_uri</code>.
  791. </p>
  792.  
  793.  
  794. <h3>Digest Class changes</h3>
  795.  
  796. <p>This class was added to the public API in this release adding
  797. constructor <code>librdf_new_digest</code>,
  798. destructor <code>librdf_free_digest</code>
  799. and methods
  800. <code>librdf_digest_init</code>,
  801. <code>librdf_digest_update</code>,
  802. <code>librdf_digest_update_string</code>,
  803. <code>librdf_digest_final</code>,
  804. <code>librdf_digest_get_digest</code>,
  805. <code>librdf_digest_get_digest_length</code>,
  806.  
  807. <code>librdf_digest_to_string</code> and
  808. <code>librdf_digest_print</code>
  809. </p>
  810.  
  811.  
  812. <h3>Hash Class changes</h3>
  813.  
  814. <p>This class was added to the public API in this release adding
  815. constructors
  816. <code>librdf_new_hash_from_string</code>, 
  817. <code>librdf_new_hash_from_array_of_strings</code> and
  818. <code>librdf_new_hash_from_hash</code>;
  819. destructor
  820. <code>librdf_free_hash</code>;
  821. and methods
  822. <code>librdf_hash_get</code>, 
  823. <code>librdf_hash_get_as_boolean</code>, 
  824. <code>librdf_hash_get_as_long</code>, 
  825. <code>librdf_hash_get_del</code>, 
  826. <code>librdf_hash_put_strings</code>, 
  827. <code>librdf_hash_print</code>, 
  828. <code>librdf_hash_print_keys</code> and
  829. <code>librdf_hash_print_values</code>.
  830. </p>
  831.  
  832.  
  833. <h3>Iterator Class changes</h3>
  834.  
  835. <p>Added a <code>librdf_new_empty_iterator</code> helper to make an
  836. always-empty iterator.</p>
  837.  
  838.  
  839. <h3>Log Class changes</h3>
  840.  
  841. <p>Added <code>LIBRDF_FROM_MEMORY</code> facility.</p>
  842.  
  843.  
  844. <h3>Model Class changes</h3>
  845.  
  846. <p>All methods returning an <code>librdf_iterator</code> or
  847. <code>librdf_stream</code> now return an empty iterator/stream rather
  848. than NULL when returning an empty result sequence.  Errors are still
  849. returned as NULL.</p>
  850.  
  851.  
  852. <h3>Node Class changes</h3>
  853.  
  854. <p>Removed unused <code>LIBRDF_NODE_TYPE_RESERVED1</code> (#3) from
  855. <code>librdf_node_type</code> enum.</p>
  856.  
  857.  
  858. <h3>Query Class changes</h3>
  859.  
  860. <p>Update to use Rasqal 0.9.9 API.  Redland 1.0.1 will not build with
  861. older Rasqal releases.</p>
  862.  
  863. <p>The query API gains methods <code>librdf_query_get_limit</code>,
  864. <code>librdf_query_set_limit</code>,
  865. <code>librdf_query_get_offset</code> and
  866. <code>librdf_query_set_offset</code> for setting and getting query
  867. result limit (max results) and offsets (result to start from).</p>
  868.  
  869. <p>Fixed some across-library memory allocation/frees between redland
  870. and rasqal that caused problems on win32. Requires rasqal 0.9.9 or
  871. newer.</p>
  872.  
  873.  
  874. <h3>Stream Class changes</h3>
  875.  
  876. <p>Added a <code>librdf_new_empty_strea</code> helper to make an
  877. always-empty strea.</p>
  878.  
  879.  
  880. <h3>Storage Class changes</h3>
  881.  
  882. <p>The MySQL store now uses a portable method across endiannesses to
  883. create a 64bit key.  This fixes 
  884. <a href="http://bugs.librdf.org/mantis/view.php?id=23">Issue #0000023</a>
  885. (Morten Frederiksen)</p>
  886.  
  887. <blockquote><p><strong>NOTE: This matches the algorithm used for
  888. little-endian systems but big-endian stores will need to serialize
  889. the store before upgrading and reload afterwards.</strong></p></blockquote>
  890.  
  891. <p>The MySQL store now uses connection pooling to prevent making a new
  892. connection to the database for each request.
  893. Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=27">Issue #0000027</a>
  894. (Morten Frederiksen)
  895. </p>
  896.  
  897. <p>The SQLite store now does not skip items with the factory methods
  898. for serializing, finding statements, serializing contexts and getting
  899. context statements.
  900. Fixes <a href="http://bugs.librdf.org/mantis/view.php?id=6">Issue #0000006</a>
  901. </p>
  902.  
  903. <p>All store methods that return an <code>librdf_iterator</code> or
  904. <code>librdf_stream</code> now return an empty iterator/stream rather
  905. than NULL when returning an empty result sequence.  Errors are still
  906. returned as NULL.</p>
  907.  
  908.  
  909. <h3>Other changes</h3>
  910.  
  911. <p>Added <code>REDLAND_INLINE</code> macro, which can be overridden if
  912. inline is not wanted.</p>
  913.  
  914.  
  915. <h2 id="rel1_0_0"><a name="rel1_0_0">Redland 1.0.0 Changes</a></h2>
  916.  
  917. <p>This is Redland 1.0.0.</p>
  918.  
  919. <p>The main changes in this release are to update to use 
  920. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.6
  921. to provide improved SPARQL query support for optionals, CONSTRUCT, ASK, builtins,
  922. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4 to
  923. provide better serializing to RDF/XML and RSS 1.0 and better
  924. RSS tag soup parsing and
  925. a new experimental <a href="http://www.sqlite.org/">SQLite</a>
  926. storage supporting SQLite V2 and V3 libraries.
  927. </p>
  928.  
  929.  
  930. <h3>Configuration changes</h3>
  931.  
  932. <p>The storages compiled into redland can be individually selected
  933. with the <code>--enable-storages=</code><em>LIST</em> configure
  934. option.
  935. </p>
  936.  
  937. <p>The default for <code>--with-dmalloc</code> is now no.  Reason:
  938. <a href="http://valgrind.kde.org/">valgrind</a>.</p>
  939.  
  940.  
  941. <h3>Portability Fixes</h3>
  942.  
  943. <p>Removed configure altering the search PATH - which was a bad idea
  944. as it makes the configure environment different from the user's.</p>
  945.  
  946. <p>Added <code>/opt/local</code> to the BerkeleyDB / SleepycatDB
  947. search path to help darwinports.</p>
  948.  
  949. <p>To help Redland built as an OSX Framework with ObjectiveC, Redland
  950. public headers can be put in a different directory structure if
  951. <code>LIBRDF_OBJC_FRAMEWORK</code> is defined in the build
  952. environment.  In this case the headers are found in a subdirectory
  953. <code>Redland</code>.  This only applies to the public Redland header
  954. files that <code>#include</code> other public header files -
  955. <code>redland.h</code> including <code>librdf.h</code>,
  956. <code>librdf.h</code> including several <code>rdf_*.h</code> files
  957. and Rasqal's <code>rasqal.h</code> including
  958. <code>raptor.h</code>. (Patch from Ren├⌐ Puls)
  959. </p>
  960.  
  961.  
  962. <h3><code>rdfproc</code> RDF processor utility program changes</h3>
  963.  
  964. <p>Added a <code>size</code> command calling
  965. <code>librdf_model_size</code>.</p>
  966.  
  967.  
  968. <h3>Model Class changes</h3>
  969.  
  970. <p>Added <code>librdf_model_contains_context</code> to find a context
  971. node in a model.</p>
  972.  
  973. <p>The <code>librdf_model_sync</code> now returns a success or failure
  974. int.</p>
  975.  
  976.  
  977. <h3>Parser Class Changes</h3>
  978.  
  979. <p>Updated to <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4
  980. providing an updated RSS tag soup parser with fixes for RSS 0.9,
  981. RSS.1.1 and Atom.</p>
  982.  
  983. <p>The constructor now finds the correct parser when given NULL
  984. arguments for mime type or type URI.</p>
  985.  
  986.  
  987. <h3>Query Class changes</h3>
  988.  
  989. <p>Update to <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.5
  990. providing improved SPARQL support: new optionals handling,
  991. <code>CONSTRUCT</code> to make RDF graphs, formatting of query
  992. results in the SPARQL XML format along with many other improvements
  993. and fixes.</p>
  994.  
  995.  
  996. <p>Added base_uri argument to <code>librdf_new_query</code></p>
  997.  
  998. <p>Added
  999. <code>librdf_query_results_to_counted_string</code>,
  1000. <code>librdf_query_results_to_string</code>,
  1001. <code>librdf_query_results_to_file_handle</code> and
  1002. <code>librdf_query_results_to_file</code>
  1003. to get the results of a query written to a syntax using
  1004. Rasqal's rasqal_query_results_write and Raptor's XML writer API.
  1005. </p>
  1006.  
  1007. <p>Added boolean returning methods:
  1008. <code>librdf_query_results_is_bindings</code>,
  1009. <code>librdf_query_results_is_boolean</code>,
  1010. <code>librdf_query_results_is_graph</code> for testing result formats
  1011. and <code>librdf_query_results_get_boolean</code> to get a boolean
  1012. result back.</p>
  1013.  
  1014.  
  1015.  
  1016. <h3>Serializer Class changes</h3>
  1017.  
  1018. <p>Updated to <a href="http://librdf.org/raptor/">Raptor</a> 1.4.4
  1019. providing a new XML writer API, an improved RDF/XML serializer
  1020. allowing user namespace declarations and relative URIs, a new RSS 1.0
  1021. serializer.</p>
  1022.  
  1023. <p>The serializers now respect any user-declared namespaces done with
  1024. <code>librdf_serializer_set_namespace</code> by passing it on to the
  1025. Raptor serializer with <code>raptor_serialize_set_namespace</code>.
  1026. At present only the Raptor RDF/XML serializer uses these
  1027. user-declared namespace hints.
  1028. </p>
  1029.  
  1030. <p>The constructor now finds the correct serializer when given NULL
  1031. arguments for mime type or type URI.</p>
  1032.  
  1033.  
  1034. <h3>Storage Class changes</h3>
  1035.  
  1036. <p>The storages compiled into redland can be individually selected
  1037. with the <code>--enable-storages=</code><em>LIST</em> configure option.
  1038. </p>
  1039.  
  1040. <p>SQLite Storage.  A new experimental storage supporting
  1041. <a href="http://www.sqlite.org/">SQLite</a> V2 and V3 libraries.
  1042. </p>
  1043.  
  1044. <p>MySQL storage.  Return failure early if the connection failed
  1045. rather than try to continue opening the storage.</p>
  1046.  
  1047. <p>MySQL storage.  Only use <code>mysql_real_escape_string</code> if
  1048. a connection was made.  Do not try to free resources such as the
  1049. mysql DB connection owned by iterators after an error, let
  1050. <code>librdf_free_iterator</code> tidy up. (Patch from Morten
  1051. Frederiksen)</p>
  1052.  
  1053.  
  1054. <h3>URI Class changes</h3>
  1055.  
  1056. <p>Handle resolving against a base URI with an omitted path.</p>
  1057.  
  1058.  
  1059. <h3>Other changes</h3>
  1060.  
  1061. <p>Removed <code>librdf_concept_labels</code> - never used or
  1062. exported.</p>
  1063.  
  1064.  
  1065.  
  1066. <h2 id="rel0_9_19"><a name="rel0_9_19">Redland 0.9.19 Changes</a></h2>
  1067.  
  1068. <p>This is Redland 1.0 Release Candidate 2.</p>
  1069.  
  1070. <p>Redland's License was changed from LGPL 2.1/MPL 1.1 to
  1071. LGPL 2.1/Apache 2</p>
  1072.  
  1073. <p>The main changes in this release are to update to use 
  1074. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.5
  1075. to provide initial SPARQL query support and to use
  1076. <a href="http://librdf.org/raptor/">Raptor</a> 1.4.2 to
  1077. provide serializing to RDF/XML and N-Triples.</p>
  1078.  
  1079.  
  1080. <h3><code>rdfproc</code> RDF processor utility program changes</h3>
  1081.  
  1082. <p>Updated to allow an optional base URI for the
  1083. <code>serialize</code> command and to handle the three forms
  1084. of query results - bindings, graph or boolean.</p>
  1085.  
  1086.  
  1087. <h3>Model Class changes</h3>
  1088.  
  1089. <p>Added <code>librdf_model_to_string</code> and
  1090. <code>librdf_model_to_counted_string</code> to serialize a model to a
  1091. string using the Serializer class functionality.  Exported
  1092. <code>librdf_model_to_string</code> to the language bindings.</p>
  1093.  
  1094.  
  1095. <h3>Query Class changes</h3>
  1096.  
  1097. <p>Now requires
  1098. <a href="http://librdf.org/rasqal/">Rasqal</a> 0.9.5
  1099. which provides initial support for the
  1100. <a href="http://www.w3.org/TR/2004/WD-rdf-sparql-query-20041012/">
  1101. SPARQL Query Language for RDF</a>,
  1102. W3C Working Draft, 12 October 2004
  1103. from the W3C RDF Data Access Working Group (DAWG).</p>
  1104.  
  1105.  
  1106. <h3>Serializer Class changes</h3>
  1107.  
  1108. <p>Pass on errors and warnings via the existing Redland logging
  1109. mechanism.  Previously they all went to stderr, the default.</p>
  1110.  
  1111. <p>Switched to use <a href="http://librdf.org/raptor/">Raptor</a> 1.4
  1112. series serializing classes so now provides RDF/XML and N-Triples
  1113. serializing and will gain any fugure serializing formats as Raptor
  1114. adds them.</p>
  1115.  
  1116. <p>Using the Raptor support, the serializers can now serialize to
  1117. strings in addition to the existing serializing to FILE* and files.
  1118. This is performed by the new methods:
  1119. <code>librdf_serializer_serialize_model_to_file_handle</code>
  1120. (deprecating <code>librdf_serializer_serialize_model</code>),
  1121. <code>librdf_serializer_serialize_model_to_string</code>
  1122. and <code>librdf_serializer_serialize_model_to_counted_string</code>.
  1123. Exported <code>librdf_serializer_serialize_model_to_string</code>
  1124. to the language bindings.</p>
  1125.  
  1126.  
  1127. <h3>Storage Class changes</h3>
  1128.  
  1129. <p><code>librdf_storage_context_add_statement</code> and
  1130. <code>librdf_storage_context_add_statements</code> - 
  1131. With a NULL context, call the non-context method as documented.</p>
  1132.  
  1133. <p>Fixed bogus '+' in <code>get_contexts</code> method in the mysql
  1134. storage.</p>
  1135.  
  1136.  
  1137. <h3>World Class changes</h3>
  1138.  
  1139. <p><code>librdf_world_get_feature</code> now returns a
  1140. <code>librdf_node*</code>, <code>librdf_world_set_feature</code>
  1141. takes a <code>librdf_node*</code> value.  Export these to
  1142. the language bindings.
  1143. </p>
  1144.  
  1145.  
  1146.  
  1147. <h2 id="rel0_9_18"><a name="rel0_9_18">Redland 0.9.18 Changes</a></h2>
  1148.  
  1149. <p>Revert the statement class usage counting - it broke things.</p>
  1150.  
  1151.  
  1152. <h2 id="rel0_9_17"><a name="rel0_9_17">Redland 0.9.17 Changes</a></h2>
  1153.  
  1154. <p>This is Redland 1.0 Release Candidate 1.</p>
  1155.  
  1156. <p>The main changes in this release are the addition of the
  1157. <a href="docs/api/query.html">Query</a> and
  1158. <a href="docs/api/query_results.html">Query Results</a> classes, and
  1159. the removal of the language bindings into the new
  1160. <a href="http://librdf.org/bindings/">Redland Bindings</a>
  1161. package.
  1162. </p>
  1163.  
  1164. <p>The interface between the Redland library and Redland Bindings
  1165. when done via <a href="http://www.swig.org/">swig</a> is by the
  1166. swig interface file <code>Redland.i</code> which is now installed in
  1167. <code>/usr/share/redland/Redland.i</code>.</p>
  1168.  
  1169.  
  1170. <h3>Portability changes</h3>
  1171.  
  1172. <p>Several patches for building Redland natively on Win32 
  1173. were provided by Jose Kahan.  These included
  1174. adding an <code>win32_rdf_config.h</code> hard-coded config
  1175. for Win32, using that in the all the C source files and adding an
  1176. <code>REDLAND_STATIC</code> define to help statically linking Win32
  1177. builds of Redland.
  1178. </p>
  1179.  
  1180.  
  1181. <h3>Configuration changes</h3>
  1182.  
  1183. <p>Redland 0.9.17 requires Raptor 1.3.2 and Rasqal 0.9.1.  Installed
  1184. versions are used if available by default, otherwise the copies in
  1185. the source tree will be used.  The
  1186. <code>--with-raptor=</code> and
  1187. <code>--with-rasqal=</code> configure options with
  1188. values <code>internal</code> or <code>system</code> can be
  1189. used to select when both are available.
  1190. </p>
  1191.  
  1192. <p>Removed all the language binding-specific configuration code
  1193. including options such as <code>--with-perl</code> that are now used
  1194. by Redland Bindings.</p>
  1195.  
  1196.  
  1197. <h3>Packaging changes</h3>
  1198.  
  1199. <p>Updated the RPM spec file to remove building of the redland-perl
  1200. and redland-python RPMs which are now made in the redland-bindings
  1201. package.</p>
  1202.  
  1203. <p>Added <code>-lrdf</code> to the pkgconfig redland.pc file (Curtis Hovey)</p>
  1204.  
  1205. <p>Redland requires automake 1.7 and autoconf 2.54 to build from CVS.</p>
  1206.  
  1207.  
  1208. <h3>Query and Query Result Classes</h3>
  1209.  
  1210. <p>The <a href="docs/api/query.html">Query</a>
  1211. (<code>librdf_query</code>) and
  1212. <a href="docs/api/query_results.html">Query Results</a>
  1213. (<code>librdf_query_results</code>) classes are new in Redland 0.9.17.
  1214. They provide RDF query support with 
  1215. <a href="http://www.w3.org/Submission/2004/SUBM-RDQL-20040109/">RDQL</a>
  1216. using <a href="http://librdf.org/rasqal/">Rasqal</a>
  1217. 0.9.1, which is now included in the Redland distribution.</p>
  1218.  
  1219. <p>The Query class has the following functions and methods:</p>
  1220. <ul>
  1221. <li><code>librdf_new_query</code> (constructor)</li>
  1222. <li><code>librdf_new_query_from_query</code> (constructor)</li>
  1223. <li><code>librdf_new_query_from_factory</code> (factory constructor)</li>
  1224. <li><code>librdf_free_query</code> (destructor)</li>
  1225. <li><code>librdf_query_execute</code></li>
  1226. </ul>
  1227.  
  1228. <p>The Query Results class has the following methods:</p>
  1229. <ul>
  1230. <li><code>librdf_query_results_as_stream</code></li>
  1231. <li><code>librdf_query_results_get_count</code></li>
  1232. <li><code>librdf_query_results_next</code></li>
  1233. <li><code>librdf_query_results_finished</code></li>
  1234. <li><code>librdf_query_results_get_bindings</code></li>
  1235. <li><code>librdf_query_results_get_binding_value</code></li>
  1236. <li><code>librdf_query_results_get_binding_name</code></li>
  1237. <li><code>librdf_query_results_get_binding_value_by_name</code></li>
  1238. <li><code>librdf_query_results_get_bindings_count</code></li>
  1239. <li><code>librdf_free_query_results</code> (destructor)</li>
  1240. </ul>
  1241.  
  1242.  
  1243. <p>A new example example5.c was created to demonstrate using the
  1244. query classes.</p>
  1245.  
  1246.  
  1247. <h3>New Logging API</h3>
  1248.  
  1249. <p>An enhanced logging API was added to provide enhanced information
  1250. from log messages, error and warnings such as from parsing.  The new
  1251. world method <code>librdf_world_set_logger</code> allows setting of
  1252. the log handler callback which gives a
  1253. <code>librdf_log_message</code>.  Parts of this the structure can be
  1254. read by using the following new accessors methods:
  1255. </p>
  1256.  
  1257. <ul>
  1258. <li><code>librdf_log_message_code</code></li>
  1259. <li><code>librdf_log_message_level</code></li>
  1260. <li><code>librdf_log_message_facility</code></li>
  1261. <li><code>librdf_log_message_message</code></li>
  1262. <li><code>librdf_log_message_locator</code></li>
  1263. </ul>
  1264.  
  1265. <p>The locator returns an <code>raptor_locator</code> that gives the
  1266. line, column, byte offset, URI and/or filename of the message.
  1267. Raptor 1.3.2+ provides accessor methods for that structure
  1268. that are described in 
  1269. <a href="http://librdf.org/raptor/libraptor.html">libraptor.3</a>.</p>
  1270.  
  1271.  
  1272. <h3>Model Class changes</h3>
  1273.  
  1274. <p>Check that duplicate statements are not added to models with the
  1275. <code>librdf_model_add_statement</code> and
  1276. <code>librdf_model_add_statements</code> methods.  The methods for
  1277. adding statements with a context do not check.
  1278. </p>
  1279.  
  1280. <p>Added <code>librdf_model_query_execute</code> method to execute a
  1281. <code>librdf_query</code> against a model, returning an
  1282. <code>librdf_query_results</code></p>
  1283.  
  1284. <p>Added <code>librdf_model_load</code> method that uses Raptor
  1285. parser guessing to load content from a URI into a model.</p>
  1286.  
  1287. <p>The contexts methods now give a run time warning if called when
  1288. the model does not support contexts or the are not enabled.  The
  1289. methods affected are:</p>
  1290. <ul>
  1291. <li><code>librdf_model_context_add_statement</code></li>
  1292. <li><code>librdf_model_context_add_statements</code></li>
  1293. <li><code>librdf_model_context_as_stream</code></li>
  1294. <li><code>librdf_model_context_remove_statement</code></li>
  1295. <li><code>librdf_model_context_remove_statements</code></li>
  1296. <li><code>librdf_model_context_serialize</code></li>
  1297. <li><code>librdf_model_find_statements_in_context</code></li>
  1298. <li><code>librdf_model_get_contexts</code></li>
  1299. </ul>
  1300.  
  1301. <p>Fixed a memory leak
  1302. inside <code>librdf_model_find_statements_in_context</code>.
  1303. </p>
  1304.  
  1305.  
  1306. <h3>Node Class changes</h3>
  1307.  
  1308. <p>Fix assert bug in <code>librdf_node_get_blank_identifier</code>
  1309. that caused it to always fail.</p>
  1310.  
  1311. <p>A bug was fixed in <code>librdf_node_get_li_ordinal</code>
  1312. to not always fail, returning -1</p>
  1313.  
  1314.  
  1315. <h3>Parser Class changes</h3>
  1316.  
  1317. <p>Deprecated methods <code>librdf_parser_set_error</code> and 
  1318. <code>librdf_parser_set_warning</code> which never worked.  The
  1319. new logging API works correctly with this code.</p>
  1320.  
  1321. <h3>Storage Class changes</h3>
  1322.  
  1323. <p>Where possible, check that duplicate statements are not added to
  1324. stores with the <code>librdf_storage_add_statement</code> and
  1325. <code>librdf_storage_add_statements</code> methods.  The methods for
  1326. adding statements with a context do not check.
  1327. </p>
  1328.  
  1329. <p>The "mysql" storage was updated by
  1330. <a href="http://purl.org/net/morten/">Morten Frederiksen</a>
  1331. to revise the schema and to add two new features,
  1332. controlled by new boolean storage options:</p>
  1333. <ol>
  1334. <li><code>bulk</code>: whether model/storage method add_statements
  1335. should be optimized, until a model/storage sync operation</li>
  1336. <li><code>merge</code>: whether to maintain a table with merged models</li>
  1337. </ol>
  1338.  
  1339. <p>Context methods will now give a run time warning if called and
  1340. contexts are not supported or enabled.  The methods affected are:</p>
  1341. <ul>
  1342. <li><code>librdf_storage_context_add_statement</code></li>
  1343. <li><code>librdf_storage_context_remove_statement</code></li>
  1344. <li><code>librdf_storage_context_serialise</code></li>
  1345. <li><code>librdf_storage_get_contexts</code></li>
  1346. </ul>
  1347.  
  1348. <p>Fixed a memory leak
  1349. inside <code>librdf_storage_find_statements_in_context</code>.
  1350. </p>
  1351.  
  1352. <p>A bug was fixed in method
  1353. <code>librdf_storage_node_stream_to_node_create</code> to allow the
  1354. second node parameter to be NULL, so that methods
  1355. <code>librdf_storage_get_arcs_out</code> and
  1356. <code>librdf_storage_get_arcs_in</code> that can use it to work.</p>
  1357.  
  1358.  
  1359.  
  1360. <h2 id="rel0_9_16"><a name="rel0_9_16">Redland 0.9.16 Changes</a></h2>
  1361.  
  1362. <p>A small but important fix to make the installed C headers work
  1363. correctly again.  The rdf_uri.h file had <code>#include
  1364. rdf_digest.h</code> which is an internal header and not installed.
  1365. This required removing two functions from the public API that
  1366. returned <code>librdf_digest*</code>, but neither of them could be
  1367. used since rdf_digest.h was not shipped.</p>
  1368.  
  1369. <p>Patched librdf.h and raptor.h to <code>#include stdio.h</code> so
  1370. that the empty program <code>#include <redland.h></code>
  1371. <code>main() {}</code> now works (ditto for raptor). </p>
  1372.  
  1373.  
  1374. <h2 id="rel0_9_15"><a name="rel0_9_15">Redland 0.9.15 Changes</a></h2>
  1375.  
  1376. <p>This version of Redland updates to use
  1377. <a href="http://librdf.org/raptor/">Raptor</a>
  1378. 1.2.0 (<a href="http://librdf.org/raptor/NEWS.html">raptor news</a>)
  1379. along with the new syntax
  1380. <a href="http://www.dajobe.org/2004/01/turtle/">Turtle Terse RDF Triple Language</a>.
  1381. </p>
  1382.  
  1383. <p>Three new storage modules were added:</p>
  1384. <ol>
  1385. <li><a href="http://www.mysql.com/">MySQL</a> store written by <a href="http://purl.org/net/morten/">Morten Frederiksen</a> supporting the entire storage API include full contexts support.</li>
  1386. <li><a href="http://triplestore.aktors.org/">AKT Triplestore</a> using MySQL inside 3store</li>
  1387. <li>File and URI-backed in-memory store - read/write file, read only URI.</li>
  1388. </ol>
  1389.  
  1390. <p>The details of these modules are explained in much greater detail
  1391. in the <a href="docs/storage.html">storage modules overview</a>
  1392. including the features that they support.
  1393. </p>
  1394.  
  1395. <p>The runtime is now compiled with assertions to check for illegal
  1396. use of NULL pointers in arguments, these will give warning messages
  1397. (which can be disabled with <code>--disable-assert-messages</code>).
  1398. The storage and model classes now track when open iterator and
  1399. streams are operating on them and will not release resources until
  1400. all the open iterators and streams are finished.
  1401. </p>
  1402.  
  1403.  
  1404. <h3>URI and Literal string type changes</h3>
  1405.  
  1406. <p>There are many changes are to properly use and return UTF-8
  1407. strings as <code>unsigned char*</code> for URIs (looking forward to
  1408. Internationalized Resource Identifiers, IRIs emerging) and for RDF
  1409. literal strings, plus other fixes to work better with C++ correcting
  1410. the use of <code>const</code>.  Redland and Raptor now both compile
  1411. cleanly with g++ 3.2, 3.3 and all warnings enabled.</p>
  1412.  
  1413.  
  1414. <h3><code>rdfproc</code> RDF processor utility program changes</h3>
  1415.  
  1416. <p><a href="utils/rdfproc.html">rdfproc</a> was extensively updated
  1417. and it can now more easily work with any type of Redland store and
  1418. has better support for working with contexts. The detailed changes
  1419. are as follows:</p>
  1420.  
  1421. <ul>
  1422. <li>Added an -s TYPE option to specify a storage type</li>
  1423. <li>Added an -t option for giving storage options</li>
  1424. <li>Added an -p option to read the value of
  1425. storage option <code>password</code> from standard input, to prevent
  1426. exposing it as a parameter.</li>
  1427. <li>The default of creating a new store was
  1428. replaced; -n enables truncation or overwriting (the
  1429. <code>write=yes</code> storage option).</li>
  1430. <li> Now recognises <code>_:</code><em>abc</em> as blank node arguments.</li>
  1431. <li>Parsing now return counts of errors and warnings if possible.</li>
  1432. <li>The parse-stream command can take an optional context node</li>
  1433. <li>Added a contexts command, to list the contexts in a model.</li>
  1434. <li>Added support for environment variables RDFPROC_STORAGE_OPTIONS and
  1435. RDFPROC_STORAGE_TYPE to provide default storage options (-t) and type (-s)</li>
  1436. <li>Help message updated and correctly lists supported parsers</li>
  1437. </ul>
  1438.  
  1439.  
  1440. <h3>Configuration changes</h3>
  1441.  
  1442. <p>Redland 0.9.15 requires Raptor 1.2.0 either installed otherwise
  1443. the copy in the source tree will be installed.</p>
  1444.  
  1445. <p><code>--with-mysql=</code><em>CONFIG</em> added to point to the
  1446. mysql_config program for the MySQL backing store
  1447. </p>
  1448.  
  1449. <p><code>--with-threestore</code> added to enable the
  1450. AKT Triplestore
  1451. </p>
  1452.  
  1453. <p><code>--disable-assert</code> added to disable
  1454. compiling run-time assertions.
  1455. </p>
  1456.  
  1457. <p><code>--disable-assert-messages</code> added to disable
  1458. compiling run-time assertion messages.
  1459. </p>
  1460.  
  1461.  
  1462. <h3>Packaging changes</h3>
  1463.  
  1464. <p>A redland-python RPM package is now provided and the default RPM
  1465. packaging now provides the MySQL store, in addition to the in-memory
  1466. and BDB previously packaged.  The new file and uri stores are also
  1467. available.  The full list of store modules is described further in the
  1468. <a href="docs/storage.html">storage modules overview</a>.</p>
  1469.  
  1470.  
  1471. <h3>Model Class changes</h3>
  1472.  
  1473. <p>Methods
  1474. <code>librdf_model_add_string_literal_statement</code> and
  1475. <code>librdf_model_add_typed_literal_statement</code>
  1476. now take a <code>const unsigned char* string</code>.
  1477. Method
  1478. <code>librdf_model_query_string</code> now takes
  1479. a <code>const unsigned char* string</code> query.
  1480. </p>
  1481.  
  1482. <p>New methods were added
  1483. <code>librdf_model_find_statements_in_context</code>
  1484. to search for a statement matching only in a particular context,
  1485. <code>librdf_model_find_statements_with_options</code> to
  1486. allow options with searching (none used at present),
  1487. and <code>librdf_model_get_contexts</code> to
  1488. list the context nodes in a graph.
  1489. </p>
  1490.  
  1491. <p>Methods <code>librdf_model_get_feature</code>,
  1492. <code>librdf_model_set_feature</code> were modified to take and return
  1493. <code>librdf_node*</code> values.
  1494. </p>
  1495.  
  1496.  
  1497. <h3>Node Class changes</h3>
  1498.  
  1499. <p>Constructors
  1500. <code>librdf_new_node_from_uri_string</code>,
  1501. <code>librdf_new_node_from_uri_local_name</code> and
  1502. <code>librdf_new_node_from_normalised_uri_string</code>
  1503. now take a <code>const unsigned char*
  1504. string</code> URI string.
  1505. Constructors
  1506. <code>librdf_new_node_from_literal</code> and
  1507. <code>librdf_new_node_from_typed_literal</code>
  1508. now take a <code>const unsigned char* string</code> RDF literal.
  1509. Constructor <code>librdf_new_node_from_blank_identifier</code>
  1510. now takes a <code>const unsigned char* string</code> blank node identifier.
  1511. </p>
  1512.  
  1513. <p>Methods
  1514. <code>librdf_node_get_literal_value</code>,
  1515. <code>librdf_node_get_literal_value_as_counted_string</code> and
  1516. <code>librdf_node_get_blank_identifier</code>
  1517. now return a <code>const unsigned char* string</code> RDF literal,
  1518. blank node identifier
  1519.  
  1520. </p>
  1521.  
  1522. <p>(Debugging methods <code>librdf_node_to_string</code> and
  1523. <code>librdf_node_to_counted_string</code>where changed to return a
  1524. <code>const unsigned char* string</code>)
  1525. </p>
  1526.  
  1527.  
  1528. <h3>Parser Class changes</h3>
  1529.  
  1530. <p>Added methods
  1531. <code>librdf_parser_parse_counted_string_as_stream</code> and
  1532. <code>librdf_parser_parse_counted_string_into_model</code>
  1533. for parsing a string with a given length rather than
  1534. a C NUL-terminated string.</p>
  1535.  
  1536.  
  1537. <p>Methods
  1538. <code>librdf_parser_parse_string_as_stream</code> and
  1539. <code>librdf_parser_parse_string_into_model</code>
  1540. now take a <code>const unsigned char* string</code> syntax buffer.
  1541. </p>
  1542.  
  1543. <p>Methods
  1544. <code>librdf_parser_get_feature</code>
  1545. and <code>librdf_parser_set_feature</code>
  1546. were modified to take and return <code>librdf_node*</code> values.
  1547. </p>
  1548.  
  1549.  
  1550. <h3>Query Class changes</h3>
  1551.  
  1552. <p>Constructor <code>librdf_new_query</code> now takes a <code>const
  1553. unsigned char* string</code> query.
  1554. </p>
  1555.  
  1556.  
  1557.  
  1558.  
  1559. <h3>Serializer Class changes</h3>
  1560.  
  1561. <p>Added methods <code>librdf_serializer_get_feature</code> and
  1562. <code>librdf_serializer_set_feature</code> taking and returning
  1563. <code>librdf_node*</code> values like the methods for the model and
  1564. parser classes.
  1565. </p>
  1566.  
  1567.  
  1568. <h3>Statement Class changes</h3>
  1569.  
  1570. <p>The statement objects are now usage counted like most other
  1571. objects so they are cheap to copy.  No user-API level changes
  1572. are needed.</p>
  1573.  
  1574. <p>(Debugging method <code>librdf_statement_to_string</code> now
  1575. returns a <code>const unsigned char* string</code>)
  1576. </p>
  1577.  
  1578. <h3>URI Class changes</h3>
  1579.  
  1580. <p>Constructors
  1581. <code>librdf_new_uri</code>, 
  1582. <code>librdf_new_uri_from_uri_local_name</code>,
  1583. <code>librdf_new_uri_normalised_to_base</code> and
  1584. <code>librdf_new_uri_relative_to_base</code>.
  1585. now take a <code>const unsigned char* string</code> URI string.
  1586. </p>
  1587.  
  1588. <p>Methods
  1589. <code>librdf_uri_as_string</code>,
  1590. <code>librdf_uri_as_counted_string</code>,
  1591. <code>librdf_uri_to_string</code> and
  1592. <code>librdf_uri_to_counted_string</code>
  1593. now return a <code>const unsigned char* string</code> URI string.
  1594. </p>
  1595.  
  1596.  
  1597. <h3>Java API Changes</h3>
  1598.  
  1599. <p>Updated to match API changes above.  Fixes for OSX 10.3</p>
  1600.  
  1601. <h3>Perl API changes</h3>
  1602.  
  1603. <p>Updated to match API changes above.  Fixes for perl 5.8.1 and
  1604. later which changed how <code>MakeMaker</code> installed.  Let perl
  1605. install the files rather than try to force it based on the prefix
  1606. argument to configure.  Make Parser method parse_string_into_model
  1607. call the correct Redland function.  Added OSX Java directories
  1608. to JDK search path.</p>
  1609.  
  1610.  
  1611. <h3>PHP API Changes</h3>
  1612.  
  1613. <p>Updated to match API changes above.  Redland is now started up and
  1614. shutdown once in the PHP module code and does not need to called
  1615. directly.</p>
  1616.  
  1617.  
  1618. <h3>Python API changes</h3>
  1619.  
  1620. <p>Updated to match API changes above.  Fix Node literal_values
  1621. to work with datatype URIs.  Export the NS class.  Added
  1622. a FileStorage class for the storage type <code>file</code>.
  1623. Removed use of the python Distutils which was often
  1624. getting the linking wrong.
  1625. </p>
  1626.  
  1627. <h3>Ruby API changes</h3>
  1628.  
  1629. <p>Updated to match API changes above.</p>
  1630.  
  1631. <h3>Tcl API changes</h3>
  1632.  
  1633. <p>Updated to match API changes above.</p>
  1634.  
  1635.  
  1636. <h3>Other changes</h3>
  1637.  
  1638. <p>Redland now ships with both portable MD5 as well as (new in
  1639. 0.9.15) SHA1 digest implementations used if neither is available via
  1640. an optimised library.</p>
  1641.  
  1642.  
  1643. <h2 id="rel0_9_14"><a name="rel0_9_14">Redland 0.9.14 Changes</a></h2>
  1644.  
  1645. <p>This version of Redland is an update mostly to synchronise
  1646. with the 
  1647. <a href="http://librdf.org/raptor/">Raptor</a> version 1.0.0 (RDF/XML and N-Triples parser) - see
  1648. <a href="http://librdf.org/raptor/NEWS.html">Raptor NEWS</a>
  1649. for the changes since 0.9.12.</p>
  1650.  
  1651. <p>New in this version is the <a href="utils/rdfproc.html">rdfproc</a> utility
  1652. which allows command line creation of redland stores, parsing
  1653. of syntaxes and manipulation of the model.</p>
  1654.  
  1655.  
  1656. <h3>Configuration changes</h3>
  1657.  
  1658. <p>Added <code>--with-raptor</code> to either choose the system
  1659. or internal raptor library.  If omittted, redland will guess
  1660. and choose either the system one, if new enough or the internal
  1661. one (always present).</p>
  1662.  
  1663.  
  1664. <h3>Hash Class changes</h3>
  1665.  
  1666. <p>Added a <code>librdf_hash_put_strings</code> helper method to put a pair of
  1667. string values into a hash.  Useful for making model or storage
  1668. options.</p>
  1669.  
  1670. <h3>Node Class changes</h3>
  1671.  
  1672. <p>Resource (URI) / literal / blank nodes are now interned on
  1673. construction so there is only one object for each distinct
  1674. <code>librdf_node</code> object. This reduces memory and makes
  1675. copying cheaper at the cost of an increase in construction cost.
  1676. Copying nodes is very common, since not only is it done for nodes but
  1677. any time a statement is used or returned.  This interning was already
  1678. done for the URI class but the change required
  1679. <code>librdf_node</code> to be made immutable, which was done in
  1680. 0.9.13.</p>
  1681.  
  1682. <h3>Storage Class changes</h3>
  1683.  
  1684. <p>Added <code>librdf_storage_context_as_stream</code> deprecating
  1685. <code>librdf_storage_context_serialise</code> to be consistent with the
  1686. *as_stream method name changes to model.</p>
  1687.  
  1688. <p>Added <code>librdf_new_storage_with_options</code> taking an
  1689. <code>librdf_hash*</code>
  1690. of options rather than the string of <code>librdf_new_storage</code>.</p>
  1691.  
  1692. <p>Added new optional storage factory methods context_add_statements
  1693. and context_remove_statements.  If omitted, the storage class
  1694. implements them with context_add_statement and context_remove_statement.</p>
  1695.  
  1696.  
  1697. <h3>Stream and Iterator Classes changes</h3>
  1698.  
  1699. <p>Optimised the stream and iterator internals to do less factory
  1700. method calls when looking for new items or the end of
  1701. stream/iterator.  This should make them slightly faster.</p>
  1702.  
  1703.  
  1704. <h3>Miscellaneous changes</h3>
  1705.  
  1706. <p>Renamed Redland statics to be <code>librdf_*</code> rather than
  1707. <code>redland_*</code>.  Added a one-line
  1708. librdf_short_copyright_string.</p>
  1709.  
  1710.  
  1711. <h3>Perl API Changes</h3>
  1712.  
  1713. <p>Fixed the broken use of <tt>UNIVERSAL::isa</tt></p>
  1714.  
  1715.  
  1716.  
  1717. <h2 id="rel0_9_13"><a name="rel0_9_13">Redland 0.9.13 Changes</a></h2>
  1718.  
  1719. <p>This version of Redland is a major update to 0.9.12 changing the
  1720. node class.  <code>librdf_node</code> objects are now immutable once created,
  1721. higher-level language APIs no longer have deal with sharing or
  1722. copying internals, some additional API support for parsing content
  1723. from strings.</p>
  1724.  
  1725. <p>This includes the stable and complete version 0.9.12 of the 
  1726. <a href="http://librdf.org/raptor/">Raptor parser</a>
  1727. which supports all of the revised RDF/XML syntax.</p>
  1728.  
  1729. <p>Initial work was added on an ECMA CLI interface using
  1730. the C# ("C sharp") language.</p>
  1731.  
  1732. <p>Blank nodes generated by parsing the syntaxes are now
  1733. generated more unique (not guaranteed) based on the Redland
  1734. startup time and a serial number.</p>
  1735.  
  1736. <p>The Perl, Python and Java APIs now always return new nodes
  1737. and statements removing the need to consider sharing at this
  1738. level.  This means that the following operation is legal in
  1739. Perl, Python and Java:</p>
  1740. <pre>
  1741. # perl
  1742. $n=RDF::Redland::Node->from_uri("http://example.org/foo");
  1743. $s=new RDF::Redland::Statement($n, $n, $n);
  1744. $model->add($s);
  1745.  
  1746. # python
  1747. n=RDF.Uri("http://example.org/foo")
  1748. s=RDF.Statement(n, n, n) # n is used as a resource RDF.Node here
  1749. model.add_statement(s)
  1750. </pre>
  1751.  
  1752. <h3>Configuration</h3>
  1753.  
  1754. <p>Several improvements were made to the building and configuring
  1755. including a better attempt to find matching Sleepycat/Berkeley DB
  1756. header and library files (and support BDB up to 4.1), searching for
  1757. installed Java JDKs and Tcl headers.  Each of the language interfaces
  1758. can be individually enabled to be build, tested and installed with
  1759. the main C library.</p>
  1760.  
  1761.  
  1762. <h3>Node Class changes</h3>
  1763.  
  1764. <p>The <code>librdf_node</code> class was modifed to make objects
  1765. immutable once constructed, they cannot be modified.  The following
  1766. set methods were consequently removed.</p>
  1767.  
  1768. <ul>
  1769. <li><code>librdf_node_set_blank_identifier</code></li>
  1770. <li><code>librdf_node_set_li_ordinal</code></li>
  1771. <li><code>librdf_node_set_literal_value</code></li>
  1772. <li><code>librdf_node_set_type</code></li>
  1773. <li><code>librdf_node_set_typed_literal_value</code></li>
  1774. <li><code>librdf_node_set_uri</code></li>
  1775. </ul>
  1776.  
  1777. <p>The following utility methods were added (covering
  1778. all the <code>librdf_node_get_type</code> values):</p>
  1779.  
  1780. <ul>
  1781. <li><code>librdf_node_is_blank</code> - return non-0 if the node is a blank node</li>
  1782. <li><code>librdf_node_is_literal</code> - return non-0 if the node is a literal</li>
  1783. <li><code>librdf_node_is_resource</code> - return non-0 if the node is a URI</li>
  1784. </ul>
  1785.  
  1786. <p>(These are reflected into the same methods on
  1787. the Perl, Python and Java node classes)</p>
  1788.  
  1789. <p><code>LIBRDF_NODE_TYPE_LI</code> as returned by <code>librdf_node_get_type</code>
  1790. was deleted, it was never used.</p>
  1791.  
  1792. <p>To support datatyped literals, the following method was added:</p>
  1793.  
  1794. <ul>
  1795. <li>librdf_node_get_literal_value_datatype_uri - get the typed literal datatype URI of the literal node</li>
  1796. </ul>
  1797.  
  1798.  
  1799. <h3>Model Class changes</h3>
  1800.  
  1801. <p>Added <code>ibrdf_model_sync</code> to sync the model to the backing store.</p>
  1802.  
  1803. <p>Added <code>librdf_model_as_stream</code> and
  1804. <code>librdf_model_context_as_stream</code> to replace
  1805. <code>librdf_model_context_serialise</code> and
  1806. <code>librdf_model_context_serialize</code> respectively.  This was
  1807. done both to reduce the confusion with the
  1808. <code>librdf_serializer</code> class and the mixture of US/UK
  1809. spelling of that word.  The old functions will remain for now.
  1810. </p>
  1811.  
  1812.  
  1813.  
  1814. <h3>Parser Class changes</h3>
  1815.  
  1816. <p>Added <code>librdf_parser_parse_string_as_stream</code> and
  1817. <code>librdf_parser_parse_string_into_model</code> to allow parsing
  1818. content from strings.</p>
  1819.  
  1820.  
  1821. <h3>Statement Class changes</h3>
  1822.  
  1823. <p>Added <code>librdf_statement_is_complete</code> to test if a
  1824. statement has all the subject, predicate and object fields assigned.
  1825. Partial statements cannot be added to a model but can be used in
  1826. matching statement queries with
  1827. <code>librdf_model_find_statements</code>.</p>
  1828.  
  1829.  
  1830. <h3>Storage Class changes</h3>
  1831.  
  1832. <p>Added <code>librdf_storage_sync</code> to sync the backing store.
  1833. (This is slightly internal to Redland, you should not be calling this
  1834. directly)</p>
  1835.  
  1836.  
  1837. <h3>Perl Interface Changes</h3>
  1838.  
  1839. <p>Updated to make the object constructors less verbose and to allow
  1840. Redland URI objects and native perl URIs to be used in place of
  1841. Redland Nodes where convienent (such as in making Statements).  All
  1842. existing code should work but can be shortened.
  1843. A new <code>--with-perl</code> configure argument to enable the perl
  1844. interface.
  1845. </p>
  1846.  
  1847.  
  1848. <h3>Python API changes</h3>
  1849.  
  1850. <p>A major update to use Python 2.2+ idioms and features by Edd
  1851. Dumbill with help from Matt Biddulph for unit tests.  A new
  1852. <code>--with-python</code> configure argument to enable the python
  1853. interface.  Edd wrote the following change log.</p>
  1854.  
  1855. <p>General changes</p>
  1856. <ul>
  1857.   <li>Removed string exceptions and replaced with RedlandError ones</li>
  1858.   <li>Where underlying Redland C objects were unexpectedly null, raise
  1859.     exceptions rather than returning None, "" or [] as appropriate.</li>
  1860.   <li>Raise exceptions if Redland C constructors fail in Python
  1861.     constructors.</li>
  1862.   <li>Did quite a lot of documentation updating, where possible
  1863.     demonstrating preferred Pythonic usages.</li>
  1864.   <li>Added more unit tests to test changed functionality.</li>
  1865. </ul>
  1866.  
  1867. <h4>RDF.Node class</h4>
  1868. <ul>
  1869.   <li>Constructor now accepts Uri to make a resource/property node, or
  1870.     a string to make a string literal</li>
  1871.   <li>Removed usage of node_type() in favour of is_resource(), is_blank()
  1872.     etc methods.</li>
  1873.   <li><strong>DEPRECATED</strong> get_blank_identifier() etc. methods in favour of
  1874.     node.blank_identifier etc properties.  Raise exception if properties
  1875.     inconsistent with the node type are requested.</li>
  1876. </ul>
  1877.  
  1878. <h4>RDF.Statement class</h4>
  1879. <ul>
  1880.   <li>No need to name subject, predicate, object in constructor any more.
  1881.     Uris or string literals accepted in place of nodes in constructor
  1882.     argument.</li>
  1883.   <li>__getattr__ method deleted, using new-style property() for
  1884.     subject, predicate, object</li>
  1885. </ul>
  1886.  
  1887. <h4>RDF.Model class</h4>
  1888.  
  1889. <ul>
  1890.   <li>Deleted get_*_iterator methods</li>
  1891.   <li>Renamed sources() to get_sources(), targets() to get_targets(),
  1892.     arcs() to get_predicates().  Retained old method names as aliases.</li>
  1893.   <li>Added get_sources_context(), get_targets_context(),
  1894.     get_predicates_context() which return (node, context) tuples.</li>
  1895.   <li>Amended get_source(), get_sources() etc methods so that Uri and
  1896.     string literals were acceptable as shortcut types for nodes.</li>
  1897.   <li>Added find_statements_context() which returns (statement, context)
  1898.     tuples.</li>
  1899.   <li>Renamed context_remove_statements() to
  1900.     remove_statements_with_context(). Retained old method name as an
  1901.     alias.</li>
  1902.   <li>Added __delitem__ method so del[statement] and del[statement,
  1903.     context] work.</li>
  1904.   <li>Added append() method so append(statement) and append(statement,
  1905.     context) work.  Suggest that append() is used in preference to
  1906.     add_statement() for Python idiomatic usage.</li>
  1907.   <li><strong>DEPRECATED</strong> serialise() in favour of as_stream().</li>
  1908.   <li>Added as_stream_context() to serialise (statement, context) tuples.</li>
  1909.   <li>Exception raised if len() is attempted on model with a non-countable
  1910.     storage.</li>
  1911.   <li><strong>DEPRECATED</strong> Model.add(), Model.add_typed_literal_statement() usages:
  1912.     now that constructing Statements is easier, it's incongruous to have
  1913.     these in the model.  Additionally it saves reproducing various bits
  1914.     of error checking that properly belong in the Node() constructor.</li>
  1915.   <li>Implemented __contains__() so "if statement in model" and
  1916.     "if (statement, context) in model" work as expected using the more
  1917.     efficient Redland C methods where possible.</li>
  1918. </ul>
  1919.  
  1920. <h4>RDF.Stream class</h4>
  1921.  
  1922. <ul>
  1923.   <li><strong>DEPRECATED</strong> Stream.context_iter().  Use in preference the _context
  1924.     variants of the appropriate Model methods.  This leads to fewer
  1925.     lines of code.</li>
  1926. </ul>
  1927.  
  1928. <h4>RDF.Uri class</h4>
  1929.  
  1930. <ul>
  1931.   <li>Amended constructor so strings or Uri instances can be passed as
  1932.     the first argument, without named parameters being required, and
  1933.     the right thing still happen.</li>
  1934. </ul>
  1935.  
  1936.  
  1937. <h3>Java Interface Changes</h3>
  1938.  
  1939. <p>Additions for the new API calls as outlined above (such
  1940. as model/storage sync, parsing from strings etc.). New configure
  1941. argument <code>--with-jdk</code> to pick the JDK in order to
  1942. find the JNI headers.  See the <a href="docs/java.html">java API</a>
  1943. page for details.</p>
  1944.  
  1945.  
  1946. <h3>PHP, Ruby and Tcl Interfaces Changes</h3>
  1947.  
  1948. <p>Updates in configuring and building these interfaces and new
  1949. <code>--with-php</code>, <code>--with-ruby</code> and <code>--with-tcl</code>
  1950. configure arguments.  See the corresponding API pages and
  1951. installation documentation for details.  Tcl now tries to guess the
  1952. includes directories.</p>
  1953.  
  1954.  
  1955. <h3>Internal changes and fixes</h3>
  1956.  
  1957. <ul>
  1958. <li>Added Sleepycat/BDB 4.0 and 4.1 support - the open API changed again</li>
  1959.  
  1960. <li>Split the <code>librdf_model</code> class into model interface
  1961. (<code>librdf_model</code>) and implementation class
  1962. (<code>librdf_model_storage</code>).</li>
  1963.  
  1964. <li>Removed the old and outdated repat RDF parser.</li>
  1965.  
  1966. <li>Removed the very old expat XML parser from the sources;
  1967. much newer or expat or libxml2 are very widespread.</li>
  1968.  
  1969. <li>Added simple thread support from patches by Seth Ladd with
  1970. configuration option <code>--with-threads</code> that locks key shared
  1971. classes to allow separate threads to work in the same memory
  1972. space. The current locked classes are URI and World.</li>
  1973.  
  1974. <li>Deleting statements in the in-memory store now works.</li>
  1975.  
  1976. <li>Getting the context of iterators returned from in-memory
  1977. sources, targets, arcs now works.</li>
  1978.  
  1979. </ul>
  1980.  
  1981.  
  1982. <h2 id="rel0_9_12"><a name="rel0_9_12">Redland 0.9.12 Changes</a></h2>
  1983.  
  1984. <p>This version of Redland is a major update to 0.9.11 incorporating
  1985. a much more improved, complete and stable version 0.9.7 of the 
  1986. <a href="http://librdf.org/raptor/">Raptor parser</a>
  1987. and a significant new feature, contexts.  The
  1988. high-level language APIs received some updates and the start of two
  1989. new languages APIs were added: <a href="docs/ruby.html">Ruby</a> and
  1990. <a href="docs/php.html">PHP</a>.</p>
  1991.  
  1992. <p>Several incompatible API changes were made in this release that
  1993. effect the C interface and all the higher level language APIs.  These
  1994. were made to support contexts and to fix some inconsistencies in the
  1995. interface about object ownership.</p>
  1996.  
  1997. <p>The persistent storage format was changed to support RDF typed
  1998. literals and this requires an upgrade of any existing
  1999. Berkeley/Sleepycat DB stores created by Redland 0.9.11 or earlier.  A
  2000. utility <em>redland-db-upgrade</em> is provided that will create an
  2001. updated store from an existing one.</p>
  2002.  
  2003. <p>A Perl script <a href="utils/update-api-0912.pl">utils/update-api-0912.pl</a>
  2004. can help automate the API changes as far as possible or warn about those
  2005. that cannot be automatically updated.</p>
  2006.  
  2007.  
  2008. <h3>New Feature - Contexts</h3>
  2009.  
  2010. <p>This feature allows a Node to be given whenever a statement is
  2011. added to a model which can can be retrieved from any model query that
  2012. returns answers as an Iterator of Nodes or a Stream of Statements.
  2013. Both of these classes gained a new method <code>get_context</code>
  2014. that returns the original Node that was given when the statement
  2015. corresponding to the answer was added to the model.</p>
  2016.  
  2017. <p>The context node can also be used to add and remove sets of
  2018. statements to/from a model, and each statement with a given
  2019. context node can be listed as a stream of statements.</p>
  2020.  
  2021. <p>Adding this feature required substantial internal changes to these
  2022. two classes and the internal storage apis and implementations along
  2023. with moderate code changes at the application level, which are
  2024. described below.</p>
  2025.  
  2026. <p>This feature can be used for the following (not an exhaustive list):</p>
  2027.  
  2028. <ul>
  2029. <li>Enable true graph merging / updating / demerging - identify the
  2030. subgraphs with context nodes.</li>
  2031. <li>Statement Identity - add each statement with a different context node</li>
  2032. <li>Statement Provenance - use the context node as the subject of
  2033. other statements about the statement that is returned.</li>
  2034. </ul>
  2035.  
  2036.  
  2037. <h3>Iterator Class Changes</h3>
  2038.  
  2039. <p>The <a href="docs/api/iterator.html">Iterator</a>
  2040. <code>get_next</code> method was split into <code>get_object</code>
  2041. always returning a pointer to a shared object and the
  2042. <code>next</code> method to advance the iterator.
  2043. The <code>get_object</code> method is generally called
  2044. <code>current</code> in the higher level language APIs.</p>
  2045.  
  2046. <p>(Iterator and Stream now have consistent method names; they
  2047. may be merged in future.)</p>
  2048.  
  2049. <p>The <code>get_object</code> method now always returns a pointer to
  2050. a shared object.  If this object is needed outside the scope of an
  2051. iteration, it must be copied, which for Nodes is the copy constructor
  2052. <code>librdf_new_node_from_node</code>.</p>
  2053.  
  2054. <p>C example for Redland 0.9.11 and earlier:</p>
  2055. <pre>
  2056.   while(!librdf_iterator_end(iterator)) {
  2057.     node=(librdf_node*)librdf_iterator_get_next(iterator);
  2058.     /* do something with the node */
  2059.   }
  2060. </pre>
  2061.  
  2062. <p>Redland 0.9.12:</p>
  2063. <pre>
  2064.   while(!librdf_iterator_end(iterator)) {
  2065.     node=(librdf_node*)librdf_iterator_get_object(iterator);
  2066.     /* do something with the node */
  2067.     librdf_iterator_next(iterator);
  2068.   }
  2069. </pre>
  2070.  
  2071. <p>A new method <code>get_context</code> was added returning a Node
  2072. for the context of the original Statement that generated the Iterator
  2073. Node.</p>
  2074.  
  2075. <p>C Iterator context example:</p>
  2076. <pre>
  2077.   while(!librdf_iterator_end(iterator)) {
  2078.     node=(librdf_node*)librdf_iterator_get_object(iterator);
  2079.     context_node=(librdf_node*)librdf_iterator_get_context(iterator);
  2080.     /* do something with the node and its context */
  2081.     librdf_iterator_next(iterator);
  2082.   }
  2083. </pre>
  2084.  
  2085.  
  2086.  
  2087. <h3>Model Class Changes</h3>
  2088.  
  2089. <p>The <a href="docs/api/model.html">Model</a>
  2090. <code>add_statement</code> method no longer takes ownership of the
  2091. passed in statement object.  The caller now retains ownership and can
  2092. reuse the statement several times and has responsibility for freeing it
  2093. if need be (when it isn't shared).</p>
  2094.  
  2095. <p>C example for Redland 0.9.11 and earlier:</p>
  2096. <pre>
  2097.   librdf_model_add_statement(model, statement);
  2098. </pre>
  2099.  
  2100. <p>Redland 0.9.12:</p>
  2101. <pre>
  2102.   librdf_model_add_statement(model, statement);
  2103.   librdf_free_statement(statement);
  2104. </pre>
  2105.  
  2106.  
  2107. <p>C streaming statement example for Redland 0.9.11 and earlier:</p>
  2108. <pre>
  2109.   while(!librdf_stream_end(stream)) {
  2110.     librdf_statement *statement=librdf_stream_next(stream); 
  2111.     /* This statement is new, so could be added directly */
  2112.     librdf_model_add_statement(model, statement);
  2113.   }
  2114. </pre>
  2115.  
  2116. <p>Redland 0.9.12:</p>
  2117. <pre>
  2118.   while(!librdf_stream_end(stream)) {
  2119.     librdf_statement *statement=librdf_stream_get_object(stream); 
  2120.     /* This statement is now shared so can still be just added */
  2121.     librdf_model_add_statement(model, statement);
  2122.   }
  2123. </pre>
  2124.  
  2125.  
  2126. <p><code>librdf_model_add_string_literal_statement</code> lost the
  2127. xml_space argument.</p>
  2128.  
  2129. <p>A new method was added to add a Statement with
  2130. an RDF datatyped literals object:</p>
  2131. <pre>
  2132.   int librdf_model_add_typed_literal_statement(librdf_model* model,
  2133.      librdf_node* subject, 
  2134.      librdf_node* predicate, 
  2135.      char* string, char *xml_language, librdf_uri *datatype_uri);
  2136. </pre>
  2137.  
  2138. <p>This should be used in preference to
  2139. <code>librdf_model_add_string_literal_statement</code> which remains
  2140. in the API as a wrapper around the above.</p>
  2141.  
  2142. <p>New methods were added to add, remove and list Statements to contexts.</p>
  2143.  
  2144. <pre>
  2145.   /* Add a single statement to the model with context */
  2146.   int librdf_model_context_add_statement(librdf_model* model,
  2147.     librdf_node* context, librdf_statement* statement);
  2148.  
  2149.   /* Add all statements on the stream to the model with context */
  2150.   int librdf_model_context_add_statements(librdf_model* model, 
  2151.     librdf_node* context, librdf_stream* stream);
  2152.  
  2153.   /* Remove a single statement from the model with the given context */
  2154.   int librdf_model_context_remove_statement(librdf_model* model, 
  2155.     librdf_node* context, librdf_statement* statement);
  2156.  
  2157.   /* Remove all statements from the model with given context */
  2158.   int librdf_model_context_remove_statements(librdf_model* model, 
  2159.     librdf_node* context);
  2160.  
  2161.   /* List all statements in the model with the given context */
  2162.   librdf_stream* librdf_model_context_serialize(librdf_model* model, 
  2163.     librdf_node* context);
  2164. </pre>
  2165.  
  2166.  
  2167. <h3>Node Class Changes</h3>
  2168.  
  2169. <p>The <a href="docs/api/node.html">Node</a> class gained a new constructor:</p>
  2170. <pre>
  2171.   librdf_node* librdf_new_node_from_typed_literal(
  2172.     librdf_world *world,
  2173.     const char *string,
  2174.     const char *xml_language, 
  2175.     librdf_uri* datatype_uri);
  2176. </pre>
  2177.  
  2178. <p>that should be used in preference to
  2179. <code>librdf_new_node_from_literal</code> which remains in the API as
  2180. a wrapper around the above.  </p>
  2181.  
  2182. <p><code>librdf_node_new_nodefrom_literal</code> lost the
  2183. xml_space argument.</p>
  2184.  
  2185.  
  2186. <h3>Parser Class Changes</h3>
  2187.  
  2188. <p>The <a href="docs/api/parser.html">Parser</a> class has an updated
  2189. <a href="http://librdf.org/raptor/">Raptor parser</a>
  2190. version 0.9.7 - parsers named <code>raptor</code> for RDF/XML
  2191. (MIME Type <code>application/rdf+xml</code>)
  2192. and <code>ntriples</code> for N-Triples.  See the
  2193. <a href="http://librdf.org/raptor/NEWS.html">Raptor NEWS</a>
  2194. for the detailed changes since 0.9.5 in the last release of Redland.</p>
  2195.  
  2196. <p>The Java SiRPAC parsers <code>sirpac-stanford</code>,
  2197. <code>sirpac-w3c</code> and the W3C LibWWW parser <code>libwww</code>
  2198. have been removed.  Raptor replaces them.</p>
  2199.  
  2200.  
  2201. <h3>Serializer Class Changes</h3>
  2202.  
  2203. <p>The <a href="docs/api/serializer.html">Serializer</a> class
  2204. gained a new method:</p>
  2205.  
  2206. <pre>
  2207.   int librdf_serializer_serialize_model_to_file(
  2208.     librdf_serializer* serializer,
  2209.     const char *name,
  2210.     librdf_uri* base_uri, 
  2211.     librdf_model* model);
  2212. </pre>
  2213.  
  2214. <p>This writes the serialized model to a filename
  2215. (rather than a file handle as done by 
  2216. <code>librdf_serializer_serialize_model</code>)
  2217. which is easier to use from higher level language APIs until a
  2218. cross-language I/O abstraction is available.</p>
  2219.  
  2220. <p>The class gained an RDF/XML serializer that can be called
  2221. either by the name <code>rdfxml</code> or the
  2222. MIME Type <code>application/rdf+xml</code>.  The
  2223. examples in each language have been updated to demonstrate
  2224. using this.</p>
  2225.  
  2226.  
  2227. <h3>Storage Class Changes</h3>
  2228.  
  2229. <p>The built in storage factories (<code>memory</code>,
  2230. <code>hashes</code>) now both support contexts.  These are enabled by
  2231. adding the storage option <code>contexts='yes'</code> to the options
  2232. string.  The hashes storage additionally supports indexing predicates
  2233. as an extra hash which can be enabled with <code>index-predicates='yes'</code>.
  2234. This makes triple queries of the form
  2235. (subject unknown, predicate known, object unknown) fast.
  2236. </p>
  2237.  
  2238. <p>C Example of creating a 0.9.12 storage that does contexts using
  2239. on-disk Berkeley/Sleepycat DB:</p>
  2240. <pre>
  2241.    storage=librdf_new_storage(world,
  2242.      "hashes", 
  2243.       name,
  2244.      "hash-type='bdb',write='yes',new='yes',contexts='yes'");
  2245. </pre>
  2246.  
  2247.  
  2248. <h3>Stream Class Changes</h3>
  2249.  
  2250. <p>The <a href="docs/api/stream.html">Stream</a>
  2251. <code>next</code> method was split into <code>get_object</code>
  2252. always returning a pointer to a shared Statement and the
  2253. <code>next</code> method to advance the iterator.
  2254. The <code>get_object</code> method is generally called
  2255. <code>current</code> in the higher level language APIs.</p>
  2256.  
  2257. <p>(Iterator and Stream now have consistent method names; they
  2258. may be merged in future.)</p>
  2259.  
  2260.  
  2261. <p>C example for Redland 0.9.11 and earlier:</p>
  2262. <pre>
  2263.   while(!librdf_stream_end(stream)) {
  2264.     statement=(librdf_statement*)librdf_stream_next(stream);
  2265.     /* do something with the statement */
  2266.   }
  2267. </pre>
  2268.  
  2269. <p>Redland 0.9.12:</p>
  2270. <pre>
  2271.   while(!librdf_stream_end(stream)) {
  2272.     statement=(librdf_statement*)librdf_stream_get_object(stream);
  2273.     /* do something with the statement */
  2274.     librdf_stream_next(stream);
  2275.   }
  2276. </pre>
  2277.  
  2278.  
  2279. <p>A new method <code>get_context</code> was added returning a Node
  2280. for the context of the Statement.</p>
  2281.  
  2282. <p>C Stream context example:</p>
  2283. <pre>
  2284.   while(!librdf_stream_end(stream)) {
  2285.     statement=(librdf_statement*)librdf_stream_get_object(stream);
  2286.     context_node=(librdf_node*)librdf_stream_get_context(iterator);
  2287.     /* do something with the statement and its context node */
  2288.     librdf_stream_next(stream);
  2289.   }
  2290. </pre>
  2291.  
  2292.  
  2293.  
  2294. <h3>Perl Interface Changes</h3>
  2295.  
  2296. <p>The <a href="docs/perl.html">Perl</a> interface
  2297. moved to the <code>RDF::Redland</code> package (the <code>RDF</code>
  2298. namespace was deprecated in 0.9.11).</p>
  2299.  
  2300. <p>The interface was updated to receive Redland error and warning
  2301. messages callbacks.  These can be set using the
  2302. <code>RDF::Redland::set_error_handler</code>
  2303. and <code>RDF::Redland::set_warning_handler</code> subroutines
  2304. taking a subroutine argument.  They are called with a single
  2305. scalar argument which is the Redland message.</p>
  2306.  
  2307. <p>The interface was updated to match the Interator and Stream
  2308. changes described above.</p>
  2309.  
  2310. <p>Perl iterator example for Redland 0.9.11 and earlier:</p>
  2311. <pre>
  2312.   while(!$iterator->end) {
  2313.     my $node=$iterator->next;
  2314.     # do something with the node
  2315.   }
  2316. </pre>
  2317.  
  2318. <p>Redland 0.9.12:</p>
  2319. <pre>
  2320.   while(!$iterator->end) {
  2321.     my $node=$iterator->current;
  2322.     # do something with the node
  2323.     $iterator->next;
  2324.   }
  2325. </pre>
  2326.  
  2327.  
  2328. <p>Perl stream example for Redland 0.9.11 and earlier:</p>
  2329. <pre>
  2330.   while(!$stream->end) {
  2331.     my $statement=$stream->next;
  2332.     # do something with the statement
  2333.   }
  2334. </pre>
  2335.  
  2336. <p>Redland 0.9.12:</p>
  2337. <pre>
  2338.   while(!$stream->end) {
  2339.     my $statement=$stream->current;
  2340.     # do something with the statement
  2341.     $stream->next;
  2342.   }
  2343. </pre>
  2344.  
  2345.  
  2346. <p>Perl example of using the Serializer class:</p>
  2347.  
  2348. <pre>
  2349.   # Use any rdf/xml parser that is available
  2350.   my $serializer=new RDF::Redland::Serializer("rdfxml");
  2351.   $serializer->serialize_model_to_file("output.rdf", $uri, $model);
  2352. </pre>
  2353.  
  2354.  
  2355. <h3>Python API Changes</h3>
  2356.  
  2357. <p>The <a href="docs/python.html">Python</a> interface
  2358. gained pydoc comments, along with an
  2359. <a href="docs/pydoc/RDF.html">HTML derived version</a>.
  2360. </p>
  2361.  
  2362. <p>The interface was updated to receive Redland error and warning
  2363. messages callbacks as python exceptions.  These can be caught
  2364. using the standard python try {} catch {} blocks.</p>
  2365.  
  2366. <p>The interface was updated to match the Interator and Stream
  2367. changes described above.</p>
  2368.  
  2369. <p>Python iterator example for Redland 0.9.11 and earlier:</p>
  2370. <pre>
  2371.   while not iterator.end():
  2372.     node=iterator.next()
  2373.     # do something with the node
  2374. </pre>
  2375.  
  2376. <p>Redland 0.9.12:</p>
  2377. <pre>
  2378.   while not iterator.end():
  2379.     node=iterator.current()
  2380.     # do something with the node
  2381.     iterator.next()
  2382. </pre>
  2383.  
  2384.  
  2385. <p>Python stream example for Redland 0.9.11 and earlier:</p>
  2386. <pre>
  2387.   while not stream.end():
  2388.     statement=stream.next()
  2389.     # do something with the statement
  2390. </pre>
  2391.  
  2392. <p>Redland 0.9.12:</p>
  2393. <pre>
  2394.   while not stream.end():
  2395.     statement=stream.current()
  2396.     # do something with the statement
  2397.     stream.next()
  2398. </pre>
  2399.  
  2400.  
  2401. <p>Python example of using the Serializer class:</p>
  2402.  
  2403. <pre>
  2404.   # Use any rdf/xml parser that is available
  2405.   serializer=RDF.Serializer()
  2406.   serializer.serialize_model_to_file("output.rdf", model)
  2407. </pre>
  2408.  
  2409.  
  2410.  
  2411. <h3>Java Interface Changes</h3>
  2412.  
  2413. <p>The <a href="docs/java.html">Java</a> classes were updated to have
  2414. a <code>finished()</code> method that the user can call to cleanup
  2415. objects replacing the rather useless Java <code>finalize()</code>
  2416. method that gives no guarantees to when it is called.</p>
  2417.  
  2418. <p>The Java API is still experimental and may change further.</p>
  2419.  
  2420.  
  2421. <h2 id="rel_older"><a name="rel_older">Redland 0.9.1 - Redland 0.9.11 Changes</a></h2>
  2422.  
  2423. <p>Release notes for 0.9.11 and earlier are in the
  2424. <a href="NEWS.html">NEWS page</a> or
  2425. <a href="ChangeLog">ChangeLog</a>
  2426. </p>
  2427.  
  2428.  
  2429.  
  2430. <hr />
  2431.  
  2432. <p>Copyright (C) 2000-2007 <a href="http://purl.org/net/dajobe/">Dave Beckett</a><br />Copyright (C) 2000-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p>
  2433.  
  2434. </body>
  2435. </html>
  2436.